package com.itheima.day11;

public class Test4 {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = 15;
        int tempMin = a < b ? a : b;
        int min = tempMin < c ? tempMin : c;

        int tempMax = a > b ? a : b;
        int max = tempMax > c ? tempMax : c;

        int center = (a + b +c) - max -min;

        System.out.println("最大值:" + max);
        System.out.println("最小值:" + min);
        System.out.println("中间值:" + center);
    }
}
